
import lodash from 'lodash'
export default ({ oldforms, form, formId }: any) => {
    const has = lodash.has(oldforms, formId)

    if (has) return {}
    return {
        ...oldforms,
        [formId]: form
    }
}